package com.crr.controller;

import com.crr.apis.PayFeignSentinelAPi;
import com.crr.entities.PayDTO;
import com.crr.ret.ResultData;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderNacosController {
    @Resource
    private PayFeignSentinelAPi payFeignSentinelAPi;

    @GetMapping("/consumer/pay/nacos/get/{orderNo}")
    ResultData<PayDTO> getPayByOrderNo(@PathVariable("orderNo") String orderNo) {
        return payFeignSentinelAPi.getPayByOrderNo(orderNo);
    }

    ;
}
